package com.ctgu.j08.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctgu.j08.vo.Trouble;

import java.util.List;

public interface TroubleMapper extends BaseMapper<Trouble> {
    int deleteByPrimaryKey(Integer trId);

    int insert(Trouble record);

    int insertSelective(Trouble record);

    Trouble selectByPrimaryKey(Integer trId);

    int updateByPrimaryKeySelective(Trouble record);

    int updateByPrimaryKey(Trouble record);

    int updateStatusToYes(Integer trId);

    int updateStatus(Integer trId,Integer trStatus);

    Trouble selectByDeId(Integer deId);

    List<Trouble> getAllTroubleInfo();
}